import zhCN from 'ant-design-vue/es/locale-provider/zh_CN'
import {
  commonZh
} from '@/locales/modules/common/common'
import {
  menuZh
} from '@/locales/modules/common/menu'
import {
  buttonZh
} from '@/locales/modules/common/button'
import {
  securityConfigurationZh
} from '@/locales/modules/authenticationCenter/securityConfiguration'
import {
  menuConfigZh
} from '@/locales/modules/authenticationCenter/menuConfig'
import {
  roleZh
} from '@/locales/modules/authenticationCenter/role'
import {
  userGroupZh
} from '@/locales/modules/authenticationCenter/userGroup'
import {
  organizationZh
} from '@/locales/modules/authenticationCenter/organization'

import {
  companyZh
} from '@/locales/modules/platformManagement/company'
import {
  appZh
} from '@/locales/modules/platformManagement/app'
import {
  logZh
} from '@/locales/modules/platformManagement/log'

import {
  udaZh
} from '@/locales/modules/technology/uda'
import {
  serialZh
} from '@/locales/modules/technology/serial'
import {
  dictZh
} from '@/locales/modules/technology/dict'

import {
  apiCodeZh
} from '@/locales/modules/common/apiCode';

import {
  appZh as messageCenterAppZh
} from '@/locales/modules/messageCenter/app';

import { edgeConfigZh } from '@/locales/modules/edgeManagement/edgeConfig'

export default {
  antLocale: zhCN,
  common: commonZh,
  menu: menuZh,
  button: buttonZh,
  apiMsg: apiCodeZh,
  modules: {
    common: {
      externalApp: '外部应用',
      internalApp: '内部应用',
      busiApp: '业务应用',
      basicService: '基础服务',
      sysService: '系统服务',
      wechatWork: '企业微信',
      dingding: '钉钉',
      sysMsg: '系统消息',
      mail: '邮件',
      DevOperAndcenter: '开发运维中心',
      factoryInfo: '工厂/车间/产线/工位',
      materialInfo: '物料/BOM/包装/单位',
      warehouseInfo: '仓库/库区/库位/策略',
      synergyInfo: '客户、供应商、客户日历',
      authenticationCenterInfo: '唯一权限认证',
      platformManagementInfo: 'APP管理/操作记录',
      technologyInfo: '序列号/数据字典',
      // technologyInfo: '序列号/打印模版/数据字典',
      messageInfo: '统一消息推送',
      industrialBigData: '工业大数据管理',
      dataModeling: '数据建模分析',
      edgeManagement: 'Edge管理'
    },

    menu: {
      index: '首页',
      settings: '企业信息',
      baseSettings: '基础信息',
      authSettings: '登录方式',
      msgSettings: '消息通知设置',
      sysInfo: '系统信息',
      companyWxConfig: '企业微信设置',
      mailConfig: '邮件通知设置',
      applications: '应用管理',
      applicationItem: '应用信息',
      applicationList: '应用列表',
      baseDataConfig: '平台基础数据配置',
      messageConfig: '消息通知配置',
      appSysInfo: '系统信息',
      appCompanyWxConfig: '企业微信设置',
      appMailConfig: '邮件通知设置',
      users: '平台管理员',
      user: '人员信息',
      usersList: '平台管理员',
      account: '个人中心',
      accountBase: '基本信息',
      accountSecurity: '安全设置',
      accountShiftConfig: '工作班次设置',
      changePw: '修改密码',
      config: '权限配置',
      menu: '菜单',
      menuConfig: '菜单配置',
      roleConfig: '角色配置',
      role: '角色',
      roleDetail: '角色详情',
      userGroup: '用户组'
    },

    user: {
      newUser: '新建用户',
      loginByAccount: '账户密码登录',
      logoutInfo: '确定要注销吗？',
      waitForCard: '等待刷卡',
      invalidArea: '无效区域',
      otherLoginMethod: '其他登录方式',
      personName: '姓名',
      jobNumber: '工号',
      phoneNumber: '手机号',
      position: '职位',
      gender: '性别',
      email: '邮箱',
      dept: '部门',
      superiorDept: '上级部门',
      hidNo: 'HID卡号',
      oldPass: '旧密码',
      newPass: '新密码',
      confirmPass: '确认密码',
      male: '男',
      female: '女',
      onJob: '在职',
      resigned: '离职',
      passwordLength: '密码长度',
      passwordLengthErr: '密码长度有误！'
    }
  },
  message: {
    warning: {
      unbind: '确定要解绑该{name}吗？',
      delete: '确定要删除该{name}吗？',
      deleteExact: '确定要删除【{name}】吗？',
      copy: '确定要复制该{name}吗？',
      batchDel: '确定要删除这些{name}吗？',
      batchUnbind: '确定要解绑这些{name}吗？',
      unsaved: '尚未保存的信息将会丢失，是否继续？',
    },
    info: {
      pleaseInputKeywords: '请输入关键字',
    },
  },
  authenticationCenter: {
    securityConfiguration: securityConfigurationZh,
    menu: menuConfigZh,
    role: roleZh,
    userGroup: userGroupZh,
    org: organizationZh
  },
  platformManagement: {
    company: companyZh,
    app: appZh,
    log: logZh
  },
  technology: {
    uda: udaZh,
    serial: serialZh,
    dict: dictZh
  },
  messageCenter: {
    app: messageCenterAppZh
  },
  edgeManagement: {
    edgeConfig: edgeConfigZh
  }
}